<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="./element-ui2/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <link rel="stylesheet" href="./css/test.css">
    <style>
    </style>
</head>

<body>
    <div id="app">
        <div>
            <el-input placeholder="请输入内容" v-model="input3">
                <template slot="prepend">Http://</template>
            </el-input>
        </div>
        <div style="margin-top: 15px;">
            <el-input placeholder="请输入内容" v-model="input4">
                <template slot="append">.com</template>
            </el-input>
        </div>
        <div style="margin-top: 15px;">
            <el-input placeholder="请输入内容" v-model="input5" class="input-with-select">
                <el-select v-model="select" slot="prepend" placeholder="请选择">
                    <el-option label="餐厅名" value="1"></el-option>
                    <el-option label="订单号" value="2"></el-option>
                    <el-option label="用户电话" value="3"></el-option>
                </el-select>
                <el-button slot="append" icon="el-icon-search"></el-button>
            </el-input>
        </div>

        <i class="el-icon-edit"></i>
        <i class="el-icon-share"></i>
        <i class="el-icon-basketball"></i>
        <el-button type="primary" icon="el-icon-search">搜索</el-button>
    </div>
</body>
<style>
    .el-select .el-input {
        width: 130px;
    }

    .input-with-select .el-input-group__prepend {
        background-color: #fff;
    }
</style>
<script src="./js/vue.js"></script>

<script src="./element-ui2/lib/index.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            input3: '',
            input4: '',
            input5: '',
            select: ''
        },
        methods: {
            onSubmit() {
                console.log('submit!');
            }
        }
    })
</script>

</html>